package com.dc.service;

import com.dc.dao.OrderDao;
import com.dc.model.Order;
import com.dc.vo.BaseModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

public interface OrderService {
//    查询订单信息
    BaseModel selectPageOrder(String user_name,Integer curr_page,Integer page_size,BaseModel baseModel) throws Exception;
//    添加订单信息
    BaseModel addOrder(Order order,BaseModel baseModel) throws Exception;
//    删除订单信息
    BaseModel deletedOrder(String ids,BaseModel baseModel) throws Exception;
//    修改订单信息
    BaseModel updateOrder(Order order,BaseModel baseModel) throws Exception;
//    按用户id查询订单信息
    BaseModel selectOrderById(int id,BaseModel baseModel,Integer curr_page,Integer page_size) throws Exception;
//    按订单id查询订单信息
    BaseModel selectOrderByid(int id,BaseModel baseModel) throws Exception;
//    查询订单详细信息
    BaseModel selectOrderInfoById(int id,BaseModel baseModel) throws Exception;
//    查询未通过订单数量
    BaseModel selectPageNOPassOrder(int id,Integer curr_page,Integer page_size, BaseModel baseModel) throws Exception;
//    查询已通过订单
    BaseModel selectPagePassOrder(int id,Integer curr_page,Integer page_size, BaseModel baseModel) throws Exception;
//    审核订单状态
    BaseModel updateOrderState(int id,int state,BaseModel baseModel) throws Exception;
}
